.class public Les/gm0;
.super Ljava/lang/Object;
.source "DefaultDownloadLaunchHandler.java"

# interfaces
.implements Lcom/ss/android/socialbase/downloader/downloader/n;


# instance fields
.field private a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private b:Landroid/content/BroadcastReceiver;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic a(Les/gm0;Landroid/content/BroadcastReceiver;)Landroid/content/BroadcastReceiver;
    .locals 0

    .line 1
    iput-object p1, p0, Les/gm0;->b:Landroid/content/BroadcastReceiver;

    return-object p1
.end method

.method static synthetic a(Les/gm0;)Ljava/util/List;
    .locals 0

    .line 2
    iget-object p0, p0, Les/gm0;->a:Ljava/util/List;

    return-object p0
.end method

.method private a(Ljava/lang/String;)Lorg/json/JSONObject;
    .locals 1

    .line 100
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 101
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return-object v0

    :catchall_0
    :cond_0
    const/4 p1, 0x0

    return-object p1
.end method

.method private a(Landroid/content/Context;Les/zn0;Z)V
    .locals 23

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    if-eqz v1, :cond_10

    .line 11
    invoke-virtual/range {p2 .. p2}, Les/zn0;->h0()Z

    move-result v2

    if-nez v2, :cond_0

    goto/16 :goto_8

    .line 12
    :cond_0
    invoke-virtual/range {p2 .. p2}, Les/zn0;->d1()I

    move-result v2

    const/4 v3, -0x5

    const-string v4, ", canShowNotification = "

    const-string v5, "LaunchResume"

    const-wide/high16 v6, 0x4028000000000000L    # 12.0

    const-wide/high16 v8, 0x4052000000000000L    # 72.0

    const-wide v10, 0x414b774000000000L    # 3600000.0

    const/4 v13, 0x0

    if-ne v2, v3, :cond_9

    .line 13
    invoke-virtual/range {p2 .. p2}, Les/zn0;->J()Z

    move-result v3

    if-nez v3, :cond_9

    .line 14
    invoke-virtual/range {p2 .. p2}, Les/zn0;->N0()I

    move-result v2

    invoke-static {v2}, Les/jo0;->a(I)Les/jo0;

    move-result-object v2

    const-string v3, "failed_resume_max_count"

    .line 15
    invoke-virtual {v2, v3, v13}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v3

    const-string v14, "failed_resume_max_hours"

    .line 16
    invoke-virtual {v2, v14, v8, v9}, Les/jo0;->a(Ljava/lang/String;D)D

    move-result-wide v8

    const-string v14, "failed_resume_min_hours"

    .line 17
    invoke-virtual {v2, v14, v6, v7}, Les/jo0;->a(Ljava/lang/String;D)D

    move-result-wide v6

    .line 18
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v14

    .line 19
    invoke-virtual/range {p2 .. p2}, Les/zn0;->a0()I

    move-result v13

    if-ge v13, v3, :cond_1

    .line 20
    invoke-virtual/range {p2 .. p2}, Les/zn0;->F0()J

    move-result-wide v16

    sub-long v12, v14, v16

    long-to-double v12, v12

    mul-double v8, v8, v10

    cmpg-double v16, v12, v8

    if-gez v16, :cond_1

    .line 21
    invoke-virtual/range {p2 .. p2}, Les/zn0;->C0()J

    move-result-wide v8

    sub-long v8, v14, v8

    long-to-double v8, v8

    mul-double v6, v6, v10

    cmpl-double v10, v8, v6

    if-lez v10, :cond_1

    const/4 v6, 0x1

    goto :goto_0

    :cond_1
    const/4 v6, 0x0

    :goto_0
    if-eqz v6, :cond_8

    const-string v7, "failed_resume_need_wifi"

    const/4 v3, 0x1

    .line 22
    invoke-virtual {v2, v7, v3}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v7

    if-ne v7, v3, :cond_2

    const/4 v7, 0x1

    goto :goto_1

    :cond_2
    const/4 v7, 0x0

    :goto_1
    const-string v8, "failed_resume_need_wait_wifi"

    const/4 v9, 0x0

    .line 23
    invoke-virtual {v2, v8, v9}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v2

    if-ne v2, v3, :cond_3

    const/4 v2, 0x1

    goto :goto_2

    :cond_3
    const/4 v2, 0x0

    :goto_2
    if-nez p3, :cond_7

    if-eqz v7, :cond_7

    if-nez v2, :cond_4

    goto :goto_3

    .line 24
    :cond_4
    iget-object v2, v0, Les/gm0;->a:Ljava/util/List;

    if-nez v2, :cond_5

    .line 25
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    iput-object v2, v0, Les/gm0;->a:Ljava/util/List;

    .line 26
    :cond_5
    invoke-virtual/range {p2 .. p2}, Les/zn0;->N0()I

    move-result v2

    .line 27
    iget-object v7, v0, Les/gm0;->a:Ljava/util/List;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v8

    invoke-interface {v7, v8}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_6

    .line 28
    iget-object v7, v0, Les/gm0;->a:Ljava/util/List;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {v7, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_6
    const/4 v2, 0x1

    .line 29
    invoke-virtual {v1, v2}, Les/zn0;->c(Z)V

    .line 30
    invoke-static {}, Lcom/ss/android/socialbase/downloader/impls/r;->e()Lcom/ss/android/socialbase/downloader/impls/r;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/ss/android/socialbase/downloader/impls/r;->a(Les/zn0;)V

    goto :goto_4

    :cond_7
    :goto_3
    const/4 v2, 0x1

    .line 31
    invoke-direct {v0, v1, v6, v7}, Les/gm0;->a(Les/zn0;ZZ)V

    .line 32
    invoke-virtual {v1, v14, v15}, Les/zn0;->e(J)V

    .line 33
    invoke-virtual/range {p2 .. p2}, Les/zn0;->a0()I

    move-result v3

    add-int/lit8 v7, v3, 0x1

    invoke-virtual {v1, v7}, Les/zn0;->h(I)V

    .line 34
    invoke-virtual/range {p2 .. p2}, Les/zn0;->Y()V

    const/4 v12, 0x1

    goto :goto_5

    :cond_8
    :goto_4
    const/4 v12, 0x0

    .line 35
    :goto_5
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "launchResume, name = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual/range {p2 .. p2}, Les/zn0;->P0()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v3, ", downloadResumed = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v12}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v5, v2}, Les/wn0;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 36
    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/e;->k()Lcom/ss/android/socialbase/appdownloader/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/ss/android/socialbase/appdownloader/e;->i()Les/yl0;

    move-result-object v2

    if-eqz v2, :cond_10

    .line 37
    invoke-interface {v2, v1, v12}, Les/yl0;->a(Les/zn0;Z)V

    goto/16 :goto_8

    :cond_9
    const/4 v12, -0x3

    if-ne v2, v12, :cond_10

    .line 38
    invoke-direct {v0, v1}, Les/gm0;->a(Les/zn0;)Z

    move-result v2

    if-eqz v2, :cond_10

    .line 39
    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/e;->k()Lcom/ss/android/socialbase/appdownloader/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/ss/android/socialbase/appdownloader/e;->j()Les/am0;

    move-result-object v2

    .line 40
    invoke-virtual/range {p2 .. p2}, Les/zn0;->N0()I

    move-result v12

    invoke-static {v12}, Les/jo0;->a(I)Les/jo0;

    move-result-object v12

    const-string v13, "back_fix_sigbus"

    const/4 v14, 0x0

    .line 41
    invoke-virtual {v12, v13, v14}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v13

    if-nez v13, :cond_b

    if-eqz v2, :cond_b

    .line 42
    invoke-interface {v2}, Les/am0;->a()Z

    move-result v2

    if-eqz v2, :cond_b

    const-string v2, "bugfix_sigbus_all_brand"

    .line 43
    invoke-virtual {v12, v2, v14}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v2

    const/4 v3, 0x1

    if-eq v2, v3, :cond_a

    .line 44
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/i;->b()Z

    move-result v2

    if-eqz v2, :cond_b

    .line 45
    :cond_a
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v13, 0x15

    if-lt v2, v13, :cond_b

    const/16 v13, 0x19

    if-gt v2, v13, :cond_b

    .line 46
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/k;->a()Z

    move-result v2

    if-eqz v2, :cond_b

    .line 47
    invoke-virtual/range {p2 .. p2}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v2

    invoke-static {}, Landroid/os/Environment;->getDataDirectory()Ljava/io/File;

    move-result-object v13

    invoke-virtual {v13}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v2, v13}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_b

    return-void

    .line 48
    :cond_b
    invoke-virtual/range {p2 .. p2}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v2

    invoke-virtual/range {p2 .. p2}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v13

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    const-string v15, "url: "

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual/range {p2 .. p2}, Les/zn0;->Q0()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v15, ", backupUrl: "

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual/range {p2 .. p2}, Les/zn0;->k()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    move-object/from16 v15, p1

    invoke-static {v15, v2, v13, v14}, Lcom/ss/android/socialbase/appdownloader/d;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_c

    return-void

    :cond_c
    const-string v2, "uninstall_resume_max_count"

    const/4 v13, 0x0

    .line 49
    invoke-virtual {v12, v2, v13}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v2

    const-string v13, "uninstall_resume_max_hours"

    .line 50
    invoke-virtual {v12, v13, v8, v9}, Les/jo0;->a(Ljava/lang/String;D)D

    move-result-wide v8

    const-string v13, "uninstall_resume_min_hours"

    .line 51
    invoke-virtual {v12, v13, v6, v7}, Les/jo0;->a(Ljava/lang/String;D)D

    move-result-wide v6

    .line 52
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v12

    .line 53
    invoke-virtual/range {p2 .. p2}, Les/zn0;->D0()I

    move-result v14

    if-ge v14, v2, :cond_d

    .line 54
    invoke-virtual/range {p2 .. p2}, Les/zn0;->F0()J

    move-result-wide v16

    move-object v2, v4

    sub-long v3, v12, v16

    long-to-double v3, v3

    mul-double v8, v8, v10

    cmpg-double v14, v3, v8

    if-gez v14, :cond_e

    .line 55
    invoke-virtual/range {p2 .. p2}, Les/zn0;->E0()J

    move-result-wide v3

    sub-long v3, v12, v3

    long-to-double v3, v3

    mul-double v6, v6, v10

    cmpl-double v8, v3, v6

    if-lez v8, :cond_e

    const/4 v3, 0x1

    goto :goto_6

    :cond_d
    move-object v2, v4

    :cond_e
    const/4 v3, 0x0

    .line 56
    :goto_6
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "uninstallResume, name = "

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual/range {p2 .. p2}, Les/zn0;->P0()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v5, v2}, Les/wn0;->c(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v3, :cond_10

    .line 57
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object v2

    invoke-virtual/range {p2 .. p2}, Les/zn0;->N0()I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/ss/android/socialbase/downloader/notification/b;->d(I)Lcom/ss/android/socialbase/downloader/notification/a;

    move-result-object v2

    if-nez v2, :cond_f

    .line 58
    new-instance v2, Lcom/ss/android/socialbase/appdownloader/f;

    invoke-virtual/range {p2 .. p2}, Les/zn0;->N0()I

    move-result v18

    invoke-virtual/range {p2 .. p2}, Les/zn0;->P0()Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {p2 .. p2}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {p2 .. p2}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {p2 .. p2}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v22

    move-object/from16 v16, v2

    move-object/from16 v17, p1

    invoke-direct/range {v16 .. v22}, Lcom/ss/android/socialbase/appdownloader/f;-><init>(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 59
    invoke-static {}, Lcom/ss/android/socialbase/downloader/notification/b;->b()Lcom/ss/android/socialbase/downloader/notification/b;

    move-result-object v3

    invoke-virtual {v3, v2}, Lcom/ss/android/socialbase/downloader/notification/b;->a(Lcom/ss/android/socialbase/downloader/notification/a;)V

    goto :goto_7

    .line 60
    :cond_f
    invoke-virtual {v2, v1}, Lcom/ss/android/socialbase/downloader/notification/a;->a(Les/zn0;)V

    .line 61
    :goto_7
    invoke-virtual/range {p2 .. p2}, Les/zn0;->c0()J

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Lcom/ss/android/socialbase/downloader/notification/a;->b(J)V

    .line 62
    invoke-virtual/range {p2 .. p2}, Les/zn0;->c0()J

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Lcom/ss/android/socialbase/downloader/notification/a;->a(J)V

    .line 63
    invoke-virtual/range {p2 .. p2}, Les/zn0;->X0()I

    move-result v3

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual {v2, v3, v4, v5, v5}, Lcom/ss/android/socialbase/downloader/notification/a;->a(ILcom/ss/android/socialbase/downloader/e/a;ZZ)V

    .line 64
    invoke-virtual {v1, v12, v13}, Les/zn0;->f(J)V

    .line 65
    invoke-virtual/range {p2 .. p2}, Les/zn0;->D0()I

    move-result v2

    const/4 v3, 0x1

    add-int/2addr v2, v3

    invoke-virtual {v1, v2}, Les/zn0;->i(I)V

    .line 66
    invoke-virtual/range {p2 .. p2}, Les/zn0;->Y()V

    :cond_10
    :goto_8
    return-void
.end method

.method static synthetic a(Les/gm0;Landroid/content/Context;Les/zn0;Z)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Les/gm0;->a(Landroid/content/Context;Les/zn0;Z)V

    return-void
.end method

.method static synthetic a(Les/gm0;Ljava/util/List;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Les/gm0;->b(Ljava/util/List;)V

    return-void
.end method

.method private a(Les/zn0;ZZ)V
    .locals 3

    .line 71
    new-instance v0, Lcom/ss/android/socialbase/appdownloader/h;

    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->b()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p1}, Les/zn0;->Q0()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/ss/android/socialbase/appdownloader/h;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 72
    invoke-virtual {p1}, Les/zn0;->P0()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 73
    invoke-virtual {p1}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/appdownloader/h;->b(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 74
    invoke-virtual {p1}, Les/zn0;->R0()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/appdownloader/h;->c(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 75
    invoke-virtual {p1}, Les/zn0;->h0()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 76
    invoke-virtual {p1}, Les/zn0;->e1()Z

    move-result v1

    const/4 v2, 0x1

    if-nez v1, :cond_1

    if-eqz p3, :cond_0

    goto :goto_0

    :cond_0
    const/4 p3, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 p3, 0x1

    :goto_1
    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->c(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 77
    invoke-virtual {p1}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->d(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 78
    invoke-virtual {p1}, Les/zn0;->i0()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->e(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 79
    invoke-virtual {p1}, Les/zn0;->b()Ljava/util/List;

    move-result-object p3

    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->a(Ljava/util/List;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 80
    invoke-virtual {v0, v2}, Lcom/ss/android/socialbase/appdownloader/h;->e(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 81
    invoke-virtual {p1}, Les/zn0;->d()I

    move-result p3

    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->a(I)Lcom/ss/android/socialbase/appdownloader/h;

    .line 82
    invoke-virtual {p1}, Les/zn0;->e()I

    move-result p3

    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->b(I)Lcom/ss/android/socialbase/appdownloader/h;

    .line 83
    invoke-virtual {p1}, Les/zn0;->D()Ljava/util/List;

    move-result-object p3

    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->b(Ljava/util/List;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 84
    invoke-virtual {p1}, Les/zn0;->H()I

    move-result p3

    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->c(I)Lcom/ss/android/socialbase/appdownloader/h;

    .line 85
    invoke-virtual {p1}, Les/zn0;->G()I

    move-result p3

    invoke-virtual {v0, p3}, Lcom/ss/android/socialbase/appdownloader/h;->d(I)Lcom/ss/android/socialbase/appdownloader/h;

    .line 86
    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->f(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 87
    invoke-virtual {p1}, Les/zn0;->j0()Z

    move-result p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->d(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 88
    invoke-virtual {p1}, Les/zn0;->g1()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->f(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 89
    invoke-virtual {p1}, Les/zn0;->a()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->g(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 90
    invoke-virtual {p1}, Les/zn0;->V0()Z

    move-result p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->i(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 91
    invoke-virtual {p1}, Les/zn0;->s()Z

    move-result p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->j(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 92
    invoke-virtual {p1}, Les/zn0;->t()Z

    move-result p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->l(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 93
    invoke-virtual {p1}, Les/zn0;->Y0()Lcom/ss/android/socialbase/downloader/b/g;

    move-result-object p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->a(Lcom/ss/android/socialbase/downloader/b/g;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 94
    invoke-virtual {p1}, Les/zn0;->y()Z

    move-result p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->n(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 95
    invoke-virtual {p1}, Les/zn0;->u()Z

    move-result p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->m(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 96
    invoke-virtual {p1}, Les/zn0;->k0()Z

    move-result p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->g(Z)Lcom/ss/android/socialbase/appdownloader/h;

    .line 97
    invoke-virtual {p1}, Les/zn0;->l0()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p2}, Lcom/ss/android/socialbase/appdownloader/h;->h(Ljava/lang/String;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 98
    invoke-virtual {p1}, Les/zn0;->m()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Les/gm0;->a(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p1

    invoke-virtual {v0, p1}, Lcom/ss/android/socialbase/appdownloader/h;->a(Lorg/json/JSONObject;)Lcom/ss/android/socialbase/appdownloader/h;

    .line 99
    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/e;->k()Lcom/ss/android/socialbase/appdownloader/e;

    move-result-object p1

    invoke-virtual {p1, v0}, Lcom/ss/android/socialbase/appdownloader/e;->a(Lcom/ss/android/socialbase/appdownloader/h;)I

    return-void
.end method

.method private a(Les/zn0;)Z
    .locals 3

    .line 67
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v0}, Les/jo0;->a(I)Les/jo0;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "uninstall_can_not_resume_for_force_task"

    .line 68
    invoke-virtual {v0, v2, v1}, Les/jo0;->a(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 69
    invoke-virtual {p1}, Les/zn0;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v1, v0}, Lcom/ss/android/socialbase/downloader/m/f;->a(Les/zn0;ZLjava/lang/String;)Z

    move-result p1

    return p1

    .line 70
    :cond_0
    invoke-virtual {p1}, Les/zn0;->J()Z

    move-result p1

    return p1
.end method

.method static synthetic b(Les/gm0;)Landroid/content/BroadcastReceiver;
    .locals 0

    .line 1
    iget-object p0, p0, Les/gm0;->b:Landroid/content/BroadcastReceiver;

    return-object p0
.end method

.method private b(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/zn0;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_4

    .line 2
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_1

    .line 3
    :cond_0
    invoke-static {}, Lcom/ss/android/socialbase/appdownloader/e;->k()Lcom/ss/android/socialbase/appdownloader/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ss/android/socialbase/appdownloader/e;->i()Les/yl0;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 4
    invoke-interface {v0, p1}, Les/yl0;->a(Ljava/util/List;)V

    .line 5
    :cond_1
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->b()Landroid/content/Context;

    move-result-object v0

    if-nez v0, :cond_2

    return-void

    .line 6
    :cond_2
    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/m/f;->a(Landroid/content/Context;)Z

    move-result v1

    .line 7
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/zn0;

    .line 8
    invoke-direct {p0, v0, v2, v1}, Les/gm0;->a(Landroid/content/Context;Les/zn0;Z)V

    goto :goto_0

    .line 9
    :cond_3
    iget-object p1, p0, Les/gm0;->a:Ljava/util/List;

    if-eqz p1, :cond_4

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_4

    .line 10
    iget-object p1, p0, Les/gm0;->b:Landroid/content/BroadcastReceiver;

    if-nez p1, :cond_4

    .line 11
    new-instance p1, Les/gm0$b;

    invoke-direct {p1, p0}, Les/gm0$b;-><init>(Les/gm0;)V

    iput-object p1, p0, Les/gm0;->b:Landroid/content/BroadcastReceiver;

    .line 12
    :try_start_0
    new-instance p1, Landroid/content/IntentFilter;

    invoke-direct {p1}, Landroid/content/IntentFilter;-><init>()V

    const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"

    .line 13
    invoke-virtual {p1, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 14
    iget-object v1, p0, Les/gm0;->b:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1, p1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception p1

    .line 15
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    const/4 p1, 0x0

    .line 16
    iput-object p1, p0, Les/gm0;->b:Landroid/content/BroadcastReceiver;

    :cond_4
    :goto_1
    return-void
.end method


# virtual methods
.method public a()Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 5
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const-string v1, "application/vnd.android.package-archive"

    .line 6
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-object v0
.end method

.method public a(Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/zn0;",
            ">;)V"
        }
    .end annotation

    .line 7
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/f;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 8
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->q()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    .line 9
    new-instance v1, Les/gm0$a;

    invoke-direct {v1, p0, p1}, Les/gm0$a;-><init>(Les/gm0;Ljava/util/List;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 10
    :cond_0
    invoke-direct {p0, p1}, Les/gm0;->b(Ljava/util/List;)V

    :goto_0
    return-void
.end method
